<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('project_sales/index',array('project_id'=>input('project_id')))}">售前流程列表</a></li>
			<li><a href="{:url('project_sales/add',array('project_id'=>input('project_id')))}">添加售前流程</a></li>
		</ul>
        <form method="post" class="js-ajax-form margin-top-20" action="{:url('project_sales/list_sort')}">
	        <div class="table-actions">
	            <button class="btn btn-sm btn-primary js-ajax-submit" type="submit">{:lang('SORT')}</button>
	        </div>
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="16">
							排序
                       	</th>
						<th width="50">ID</th>
						<th>售前人员</th>
						<th>售前内容</th>
						<th>计划完成日期</th>
						<th>实际完成日期</th>
						<th>状态</th>
						<th width="240">{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="list" item="vo">
						<tr>
							<td>
								<input name="sort[{$vo.id}]" type="text" size="3" value="{$vo.sort}" class="input input-order">
                           	</td>
							<td>{$vo.id}</td>
							<td>{$vo.staff.name}</td>
							<td>{$vo.title}</td>
							<td>{$vo.plan_date}</td>
							<td>{$vo.finish_date}</td>
							<td>{$vo.status_text}</td>
							<td>
								<!-- <a class="btn btn-xs btn-primary" href="javascript:parent.openIframeLayer('{:url('project_sales/log',array('sales_id'=>$vo['id']))}','日志记录',{area:['40%','50%']});">日志记录</a> -->
								<a class="btn btn-xs btn-primary" href='{:url("project_sales/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
								<a class="btn btn-xs btn-danger js-ajax-delete" href='{:url("project_sales/delete",array("id"=>$vo["id"]))}'>{:lang('DELETE')}</a>
							</td>
						</tr>
					</foreach>
				</tbody>
			</table>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>